package vamp
/**
 * The vamp_serviceweb.Vehiclestatus entity.
 *
 * @author    
 *
 *
 */
class Vehiclestatus {
    static mapping = {
         table 'vehiclestatus'
         // version is set to false, because this isn't available by default for legacy databases
         version false
         id generator:'identity', column:'idvehiclestatus'
         vehicle column:'idvehicle'
         status column:'idstatus'
         gpslocation column:'idgpslocation'
    }
    Date timestamp
    String comment
    // Relation
    Vehicle vehicle
    // Relation
    Status status
    // Relation
    Gpslocation gpslocation

    static constraints = {
        timestamp()
        comment()
        vehicle()
        status()
        gpslocation()
    }
    String toString() {
        return "${id}"
    }
}
